import java.util.Scanner;

public class Main1606 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int x = a / 10;//十位
        int y = a % 10;//个位
        int b = x + y*10;
        System.out.println(b);
    }
}
